

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>model Package &mdash; open-hea 0.1 documentation</title>
    
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="open-hea 0.1 documentation" href="index.html" />
    <link rel="next" title="view Package" href="view.html" />
    <link rel="prev" title="controller Package" href="controller.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="view.html" title="view Package"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="controller.html" title="controller Package"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">open-hea 0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="model-package">
<h1>model Package<a class="headerlink" href="#model-package" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2><tt class="xref py py-mod docutils literal"><span class="pre">model</span></tt> Package<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<span class="target" id="module-model.__init__"></span><p>This file is part of open-hea.</p>
<p>open-hea is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.</p>
<p>open-hea is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with open-hea.  If not, see &lt;<a class="reference external" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
</div>
<div class="section" id="module-model.common">
<span id="common-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">common</span></tt> Module<a class="headerlink" href="#module-model.common" title="Permalink to this headline">¶</a></h2>
<p>This file is part of open-hea.</p>
<p>open-ihm is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.</p>
<p>open-ihm is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with open-ihm.  If not, see &lt;<a class="reference external" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
<dl class="function">
<dt id="model.common.getDbString">
<tt class="descclassname">model.common.</tt><tt class="descname">getDbString</tt><big>(</big><em>strSeed</em><big>)</big><a class="headerlink" href="#model.common.getDbString" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="model.common.getIntMonth">
<tt class="descclassname">model.common.</tt><tt class="descname">getIntMonth</tt><big>(</big><em>month</em><big>)</big><a class="headerlink" href="#model.common.getIntMonth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="model.common.getStringMonth">
<tt class="descclassname">model.common.</tt><tt class="descname">getStringMonth</tt><big>(</big><em>month</em><big>)</big><a class="headerlink" href="#model.common.getStringMonth" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="function">
<dt id="model.common.getViewString">
<tt class="descclassname">model.common.</tt><tt class="descname">getViewString</tt><big>(</big><em>strSeed</em><big>)</big><a class="headerlink" href="#model.common.getViewString" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</div>
<div class="section" id="module-model.config">
<span id="config-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">config</span></tt> Module<a class="headerlink" href="#module-model.config" title="Permalink to this headline">¶</a></h2>
<p>This file is part of open-ihm.</p>
<p>-<em>- coding: utf-8 -</em>-</p>
<p>open-ihm is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your
option) any later version.</p>
<p>open-ihm is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License
along with open-ihm.  If not, see &lt;<a class="reference external" href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</p>
<dl class="class">
<dt id="model.config.Config">
<em class="property">class </em><tt class="descclassname">model.config.</tt><tt class="descname">Config</tt><a class="headerlink" href="#model.config.Config" title="Permalink to this definition">¶</a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<p>Configures the mysql database connector which is then called as below:</p>
<p>includes.mysql.connector.Connect(<a href="#id2"><span class="problematic" id="id3">**</span></a>Config.dbinfo())</p>
<dl class="attribute">
<dt id="model.config.Config.CHARSET">
<tt class="descname">CHARSET</tt><em class="property"> = 'utf8'</em><a class="headerlink" href="#model.config.Config.CHARSET" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="model.config.Config.DATABASE">
<tt class="descname">DATABASE</tt><em class="property"> = 'openheadb'</em><a class="headerlink" href="#model.config.Config.DATABASE" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="model.config.Config.HOST">
<tt class="descname">HOST</tt><em class="property"> = 'localhost'</em><a class="headerlink" href="#model.config.Config.HOST" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="model.config.Config.PASSWORD">
<tt class="descname">PASSWORD</tt><em class="property"> = 'hea2012'</em><a class="headerlink" href="#model.config.Config.PASSWORD" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="model.config.Config.PORT">
<tt class="descname">PORT</tt><em class="property"> = 3306</em><a class="headerlink" href="#model.config.Config.PORT" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="model.config.Config.UNICODE">
<tt class="descname">UNICODE</tt><em class="property"> = True</em><a class="headerlink" href="#model.config.Config.UNICODE" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="model.config.Config.USER">
<tt class="descname">USER</tt><em class="property"> = 'openhea'</em><a class="headerlink" href="#model.config.Config.USER" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="attribute">
<dt id="model.config.Config.WARNINGS">
<tt class="descname">WARNINGS</tt><em class="property"> = True</em><a class="headerlink" href="#model.config.Config.WARNINGS" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

<dl class="classmethod">
<dt id="model.config.Config.dbinfo">
<em class="property">classmethod </em><tt class="descname">dbinfo</tt><big>(</big><big>)</big><a class="headerlink" href="#model.config.Config.dbinfo" title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>

</dd></dl>

</div>
<div class="section" id="database-module">
<h2><tt class="xref py py-mod docutils literal"><span class="pre">database</span></tt> Module<a class="headerlink" href="#database-module" title="Permalink to this headline">¶</a></h2>
</div>
<div class="section" id="databaseinitialiser-module">
<h2><tt class="xref py py-mod docutils literal"><span class="pre">databaseinitialiser</span></tt> Module<a class="headerlink" href="#databaseinitialiser-module" title="Permalink to this headline">¶</a></h2>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">model Package</a><ul>
<li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">model</span></tt> Package</a></li>
<li><a class="reference internal" href="#module-model.common"><tt class="docutils literal"><span class="pre">common</span></tt> Module</a></li>
<li><a class="reference internal" href="#module-model.config"><tt class="docutils literal"><span class="pre">config</span></tt> Module</a></li>
<li><a class="reference internal" href="#database-module"><tt class="docutils literal"><span class="pre">database</span></tt> Module</a></li>
<li><a class="reference internal" href="#databaseinitialiser-module"><tt class="docutils literal"><span class="pre">databaseinitialiser</span></tt> Module</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="controller.html"
                        title="previous chapter">controller Package</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="view.html"
                        title="next chapter">view Package</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/model.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="view.html" title="view Package"
             >next</a> |</li>
        <li class="right" >
          <a href="controller.html" title="controller Package"
             >previous</a> |</li>
        <li><a href="index.html">open-hea 0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2011, Tiwonge Manda, Brown Msiska, Evidence for Development.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
    </div>
  </body>
</html>